#ifndef QLIFEGRAPHICSITEM_H
#define QLIFEGRAPHICSITEM_H

#include <QtGui>

class QLife;

/**
	@author Stefan Weigert <stefan.weigert@mailbox.tu-dresden.de>
*/
class QLifeGraphicsItem : public QGraphicsItem
{
	public:
		QLifeGraphicsItem ( QLife* life );

		~QLifeGraphicsItem();

		void setDrawViewDistance ( bool drawViewDistance );
		void setDrawDestination ( bool drawDestination );
		QLife* getLife();

		QRectF boundingRect() const;
		void setPen ( const QPen & pen );
		void setBrush ( const QBrush & brush );

	protected:
		bool drawViewDistance;
		bool drawDestination;

		QLife* life;
		QPen pen;
		QBrush brush;
		QRectF rect;
};

#endif
